<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    密码：<input type="text" name="" id="">
    <input type="checkbox" name="" id="" class="check"> <br>
    <button></button>
    <script>
        let password = document.querySelector('input')
        password.value = '随便设置的一个值'
        password.type = 'password'

        let checkBox =  document.querySelector('.check')
        checkBox.checked = true
    
        const button = document.querySelector('button')
        button.disabled = true
    </script>
</body>
</html>